package com.qqtech.qquan.order.enums;

public enum OrderBaseSubsidyTypeDictEnum {
	SHOP(1),
	QUAN(2), 
	NONE(3);
	int code;

	OrderBaseSubsidyTypeDictEnum(int code) {
		this.code = code;
	}

	public int getCode() {
		return code;
	}

	public static boolean isInScope(Integer code) {
		if (code == null) {
			return false;
		}
		OrderBaseSubsidyTypeDictEnum[] arrEnum = OrderBaseSubsidyTypeDictEnum.values();
		for (OrderBaseSubsidyTypeDictEnum e : arrEnum) {
			if (e.code == code.intValue()) {
				return true;
			}
		}
		return false;
	}
}
